<template>
    <div>
        <!-- 把整体看作一个table -->
        <el-col class="el-col">
            <!-- 头部区域 -->
            <div class="colhead">
                <!-- dataUrls包含formName、placeHolder和url三个属性 -->

            </div>
        </el-col>

        <!--Result_form @rowClicked="myClikcEvent" @rowSelected="HandleSelect" v-bind:type-before="myTypeBefore" v-bind:table-head-json-array="myTableHead" v-bind:addition-btns="myAdditionBtns"></Result_form-->
        <Result_form :request-u-r-l="baseUrl" :table-head-json-array="myTableHead" :op-base-url="opBaseUrl" :type-before="myTypeBefore" :addition-btns="myAdditionBtns"></Result_form>


        <El_model v-bind:visible="myModelVisibility" v-bind:form-data="myModelData" v-bind:title="myModelTitle" v-bind:table-head="myTableHead"></El_model>
    </div>
</template>



<script>
    import Web_search_box from "../components/myUtil/Web_search_box";
    import Result_form from "../components/myUtil/Result_form";
    import El_model from "../components/myUtil/El_model";
    export default {
        components: {El_model, Result_form, Web_search_box},
        data() {
            return {
                // mySearchUrl:localStorage.getItem('reqBaseUrl') + '/api/college/search',
                myDataUrls:[{formName:'professionalCode',placeHolder:'请选择专业',url:'/api/user/teacher/all'}],
                opBaseUrl:localStorage.getItem('reqBaseUrl') + '/api/user',
                baseUrl:localStorage.getItem('reqBaseUrl') + '/api/user/teacher?',
                myTypeBefore:['selection'],
                myTableHead: [{colName:'id',showName:'id',inModel:false},
                    {colName:'name',showName:'用户名'},
                    {colName:'account',showName:'账号'},
                    {colName:'phone',showName:'电话'},
                    {colName:'email',showName:'邮箱'},
                    {colName: 'isEnabled',showName: '审核状态',inModel:false}],
                myAdditionBtns:[{myStyle:'btn btn-success',name:'审核通过'},{myStyle:'btn btn-danger',name:'锁定'}],

                mySelections:[],

                myModelVisibility:false,
                myModelTitle:'',
                myModelData:[],

                currentPage: 1,
                pagesize: 10,
            };
        },
        methods: {
            mySearch(url){
                this.baseUrl = url
            }
        }
    };
</script>


<style scoped>
    .colhead {
        padding-bottom: 10px;
        border-bottom: 1px solid #ccc;
    }
</style>
